﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CoastalClimbing.Code
{
    public class GalleryImage
    {
        private string _title;
        private string _description;
        private string _filename;
        private Guid _imgID;

        public Guid ImageID
        {
            get { return _imgID; }
            set { _imgID = value; }
        }

        public string Title
        {
            get { return _title;}
            set { _title = value;}
        }

        public string Description
        {
            get { return _description;}
            set { _description = value;}
        }

        public string Filename
        {
            get { return _filename;}
            set { _filename = value;}
        }

        public string Info
        {
            get 
            {
                if(!string.IsNullOrWhiteSpace(_title) && !string.IsNullOrWhiteSpace(_description))
                {
                    return _title + " (" + _description + ")";
                }
                else
                {
                    return _title;  
                }
            }
        }   
    }
}